import http from '@/axios/http.ts'

/**
 * 获取天气
 * @param {*} p 
 * @returns 
 */
export const getWeatherByCity = (params) => {
    return http.get('/Home/GetWeatherByCity', params);
}

/**
 * 获取地址
 * @param {*} p 
 * @returns 
 */
export const getIp = () => {
    return http.get('/Home/GetIp');
}
//
/**
 * 获取系统信息
 * @param {*} p 
 * @returns 
 */
export const getSystemInfo = () => {
    return http.get('/Home/GetSystemInfo');
}

/**
 * 获取系统信息
 * @param {*} p 
 * @returns 
 */
export const getArticle = (type) => {
    return http.get('/Home/GetArticle',type);
}

/**
 * 获取每日一言
 * @param {*} p 
 * @returns 
 */
export const getEverydaySaid = (params) => {
    return http.get('/Home/GetEverydaySaid',params);
}